//
//  AXHomeZxktFirstCollectionCell.m
//  AnXin100
//
//  Created by 天质弘耕 on 2018/10/23.
//  Copyright © 2018年 tzhg. All rights reserved.
//

#import "AXHomeZxktFirstCollectionCell.h"
#import "UIView+SDAutoLayout.h"
#import "ZXCategories.h"

@implementation AXHomeZxktFirstCollectionCell

- (id)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self creatView];
        [self setlayout];
    }
    return self;
}

- (void)creatView {
    
    /** imageview */
    self.menuImageView = [[UIImageView alloc]init];
    [self.contentView addSubview:self.menuImageView];
    /** title */
    self.nameLabel = [[UILabel alloc]init];
    self.nameLabel.textColor = [UIColor whiteColor];
    self.nameLabel.textAlignment = NSTextAlignmentCenter;
    self.nameLabel.font = FONT_TWELVE;
    [self.contentView addSubview:self.nameLabel];
    
    
}

- (void)setlayout {
    
    self.menuImageView.sd_layout
    .centerXEqualToView(self.contentView)
    .topSpaceToView(self.contentView,0)
    .widthIs(50)
    .heightIs(50);
    /** menu */
    self.nameLabel.sd_layout
    .rightSpaceToView(self.contentView, 0)
    .centerYEqualToView(self.menuImageView)
    .leftSpaceToView(self.contentView, 0)
    .heightIs(BTN_HEIGHT);
}


@end

